package com.yungu.swift.system.sys.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.base.service.impl.BaseServiceImpl;
import com.yungu.swift.system.sys.model.dto.SysAirportDto;
import com.yungu.swift.system.sys.dao.SysAirportMapper;
import com.yungu.swift.system.sys.service.SysAirportService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class SysAirportServiceImpl extends BaseServiceImpl<SysAirportDto> implements SysAirportService {

    @Autowired
    private SysAirportMapper systemAirportMapper;

    @Override
    protected IMapper<SysAirportDto> getMapper() {
        return systemAirportMapper;
    }

    @Override
    public ResponseData<List<SysAirportDto>> getAirportByCityName(Map<String, Object> params) {
        return ResponseData.buildSuccessResponse(systemAirportMapper.getAirportByCityName(params));
    }
}
